/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.classes.service.impl;

import org.springblade.modules.classes.entity.TeacherEvaluateEntity;
import org.springblade.modules.classes.vo.TeacherEvaluateVO;
import org.springblade.modules.classes.excel.TeacherEvaluateExcel;
import org.springblade.modules.classes.mapper.TeacherEvaluateMapper;
import org.springblade.modules.classes.service.ITeacherEvaluateService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 教师评价表 服务实现类
 *
 * @author junxin
 * @since 2024-04-16
 */
@Service
public class TeacherEvaluateServiceImpl extends BaseServiceImpl<TeacherEvaluateMapper, TeacherEvaluateEntity> implements ITeacherEvaluateService {

	@Override
	public IPage<TeacherEvaluateVO> selectTeacherEvaluatePage(IPage<TeacherEvaluateVO> page, TeacherEvaluateVO teacherEvaluate) {
		return page.setRecords(baseMapper.selectTeacherEvaluatePage(page, teacherEvaluate));
	}


	@Override
	public List<TeacherEvaluateExcel> exportTeacherEvaluate(Wrapper<TeacherEvaluateEntity> queryWrapper) {
		List<TeacherEvaluateExcel> teacherEvaluateList = baseMapper.exportTeacherEvaluate(queryWrapper);
		//teacherEvaluateList.forEach(teacherEvaluate -> {
		//	teacherEvaluate.setTypeName(DictCache.getValue(DictEnum.YES_NO, TeacherEvaluate.getType()));
		//});
		return teacherEvaluateList;
	}

}
